package homework07;

import java.io.File;

public class homework001 {
	public static void main(String[] args) {
		File file = new File("D:\\homework\\homework1");
		delete(file);
	}
	public static void delete(File src){
		File[] files = src.listFiles();
		for (File file : files){
			if (file.isFile()){
				file.delete();
			}else{
				delete(file);
			}
		}
		src.delete();	
	}
}
